package com.example.buildermode.two;

/**
 * @version 1.0.0
 * @className: TestHouse
 * @description:
 * @author: zhangjunfa
 * @date: 2022/6/12 10:58
 */
public class TestHouse {
    public static void main(String[] args) {
        //准备创建房子的指挥着
        HouseDirector houseDirector = new HouseDirector();

        //盖高楼
        HighBuilding highBuilding = new HighBuilding();

        //重置建造者
        houseDirector.setHouseBuilder(highBuilding);

        //完成盖房子，返回产品(高楼)
        houseDirector.constructorHouse();

    }
}
